package com.bwie.auth.fegin;

import com.bwie.common.domain.User;
import com.bwie.common.domain.request.UserRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("bwie-user")
public interface AuthFeginService {

    @PostMapping("/findByPhone")
    User findByPhone(@RequestParam String phone);

    @PostMapping("/regist")
    Integer regist(@RequestBody UserRequest userRequest);
}
